﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SlimDX.DXGI;

namespace JamesZhao.Engine.Graphics.RenderStages
{
    class OverlayStage : RenderStage
    {
        public override string Name
        {
            get { return "Overlay"; }
        }

        protected override void OnRender(GraphicsDevice device, SwapChain swapChain, VisualsList visualsList, Camera camera)
        {
            foreach (var overlayDrawable in visualsList.OverlayDrawables)
            {
                overlayDrawable.DrawOverlay(FinalColorSurface);
            }
        }

        protected Surface Output { get; set; }
    }
}
